package javabean;

public class ManService {
    //拿到人的详细信息
    private Man R;
    public ManService(Man m)
    {
        this.R = m;
    }

    //提供方法：打印人的详细信息

    public void printManInfo()
    {
        System.out.println("姓名：" + R.getName());
        System.out.println("年龄：" + R.getAge());
        System.out.println("性别：" + R.getGender());
    }
}
